><

Setting Source preferences



You can customize the Source preferences that influence the behavior of the HTML syntax checker and appearance of HTML code in Source view:

  • Source settings turn on and off drag and drop support and control how HTML code appears in Source view. A preview pane in the dialog box shows you how the text will look with the preferences you choose.
  • Browser Sets settings let you combine browsers and revisions of the HTML specification into complex sets of HTML syntax rules. The sets you assemble here appear in the browser compatibility list in Source view. Based on the tag descriptions in the Adobe GoLive Web Settings, these preferences instruct the built-in syntax checker which rules to use when checking your source code.
  • Font settings control the default screen font that displays HTML code and content in Source view.
  • Colors settings let you turn syntax highlighting on and off and control the way the individual HTML tags and enclosed text are displayed in Source view when the viewer enables syntax highlighting.
  • Printing options control the default formatting options used when printing HTML source code.

  • To set general source preferences:

    1 Choose Edit > Preferences, and click the Source icon.

    2 Select from the options controlling how HTML behaves in Source view:

  • Enable Dragging of Marked Text turns dragging on or off. This preference is enabled by default.
  • Relaxed Checking of &xxx Characters lets you relax the rules applied to special characters when checking the syntax. Select this option to use uppercase characters (as found in older HTML files) and keep the syntax checker from looking for a trailing semicolon. For example, the &lttag&GT string will be interpreted as &lt;tag&gt;. This preference is enabled by default.
  • Do Not Mark Unknown Attributes As Errors determines whether the syntax checker ignores non-HTML or unknown tag attributes. For example, Adobe GoLive uses the custom COOL attribute to identify an HTML table as a layout grid. If you uncheck this option, the syntax checker will find and mark this attribute as unknown. This preference is enabled by default.
  • Text formatting in Source view options. You can decide whether boldface display for HTML tags is on or off (Bold for Tags is enabled by default), whether lower-level HTML tags are automatically indented or not (Auto Indent is set to 4 by default) and tab size of the indent (Tab Size), whether you want line numbers to display at the left margin (Line Numbers), and whether you want HTML to wrap automatically (Word Wrap).

  • These settings are previewed in the Preferences window.

    To build a custom browser set for the syntax checker:

    1 Choose Edit > Preferences, and click Browser Sets under Source preferences.

    2 Select New, and enter a descriptive name in the text box below the Browser Sets list.

    3 Select the desired set of browsers from the Browser list.

    4 Select Default Browser Set if you want the syntax checker to default to the new browser set, and click OK.

    You can now choose the new browser set from the browser compatibility list in Source view. This new browser set will influence the behavior of the syntax checker.

    To edit or delete an existing browser set:

    1 In the Browser Sets preference panel, choose a set from the Browser Sets list.

    2 Do one of the following:

  • To edit the set, choose a different set of browsers from the Browser list, and click OK.
  • To delete the set, choose Delete, and click OK.

  • To set font preferences:

    1 Choose Edit > Preferences, and click Font under Source preferences.

    2 Choose a typeface, font size, and style for HTML code. This typeface appears only within Source view, not on your Web page. These settings are previewed in the Preferences window.

    To set syntax highlighting preferences:

    1 Choose Edit > Preferences, and click Colors under Source preferences.

    2 Select preferences:

  • If you don't want to use syntax highlighting, select No Syntax Highlighting. If you want to use syntax highlight, turn syntax highlighting off, or choose Detailed, Media & Links, URLs highlighting, or Server Side Code.
  • To select a custom color for an HTML code element, double-click the color box to open the color picker, and select a new color.

  • To set printing preferences:

    1 Choose Edit > Preferences, and click Printing under Source preferences.

    2 Select preferences:

  • Printer Specific Settings lets you print using color attributes for syntax highlighting (only useful on a color printer), bold typeface, or line numbers.
  • Use Special Font lets you apply a custom typeface, size, and style.

  • Use these preferences when you want the printed version of your document in Source view to look different from the online version.


    Working in HTML > Editing HTML code in Source view > Setting Source preferences